package ReefStats::Schema::ReefStatsDB::Clusters;

use strict;
use warnings;
use base 'DBIx::Class';
use ReefStats::Schema::DataTypes;

__PACKAGE__->load_components('Core');
__PACKAGE__->table('clusters_');
__PACKAGE__->add_columns(
    id      => { @_int_id, },
    cluster => { @_varchar_255, @_not_null, },
    alias   => { @_varchar_100, @_not_null, },
    visible => { @_boolean, @_not_null, },
);
__PACKAGE__->set_primary_key('id');
__PACKAGE__->add_unique_constraint( 'Alias',   ['alias'] );
__PACKAGE__->add_unique_constraint( 'Cluster', ['cluster'] );

1;
